﻿@model MVC_basic.ViewModels.CanvasAppViewModel
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"></script>

<div id="validationDiv">
    <div class="large-4">
        @Html.LabelFor(model => model.name)
        @Html.EditorFor(model => model.name)
        @Html.ValidationMessageFor(model => model.name)
    </div>
    <div class="large-4">
        @Html.LabelFor(model => model.logoUrl) 
        @Html.EditorFor(model => model.logoUrl)
        @Html.ValidationMessageFor(model => model.logoUrl)
    </div>
    <div class="large-4">
        @Html.LabelFor(model => model.url)
        @Html.EditorFor(model => model.url)
        @Html.ValidationMessageFor(model => model.url)
    </div>
    <div class="large-4">
        @Html.LabelFor(model => model.canvasWidth)
        @Html.EditorFor(model => model.canvasWidth)
        @Html.ValidationMessageFor(model => model.canvasWidth)
    </div>
    <div class="large-4">
        @Html.LabelFor(model => model.canvasHeight)
        @Html.EditorFor(model => model.canvasHeight)
        @Html.ValidationMessageFor(model => model.canvasHeight)
    </div>
    @Html.Hidden("appType", "Canvas")
</div>

<script>
    $.validator.unobtrusive.parse('#validationDiv');
</script>